import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsOptional } from "class-validator";

export class UploadFileDto {
    @ApiProperty({ description: "文件", format: "binary" })
    @IsNotEmpty()
    file: string;
    
    @ApiProperty({ description: "上传文件描述，可以是纯字符串，也可以是JSON字符串", example: "" })
    @IsOptional()
    business: string;
    
    @ApiProperty({ description: "文件夹地址", example: "wenjianja/001" })
    @IsOptional()
    folderPath:string;
}
